package com.java.thread.demo.chapter1.sleep;

/**
 * Created by yiyongyao on 2017/12/19.
 */
public class MyThreadStart extends Thread {

    @Override
    public void run() {
        try {
            System.out.println("start threadName = " + this.currentThread().getName()+" begin");
            Thread.sleep(2000);
            System.out.println("start threadName = " + this.currentThread().getName()+" end");
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
